package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.ActivitySeckillPromotion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActivitySeckillPromotionRepository extends JpaRepository<ActivitySeckillPromotion,Integer>, JpaSpecificationExecutor<ActivitySeckillPromotion> {

    List<ActivitySeckillPromotion> findAllByActivityIdOrderByOrderNoDesc(Integer activityId);

    void deleteAllByActivityId(Integer activityId);
}
